<!doctype html>
<html lang="zh-cn">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>文字立体投影</title>
</head>
<style>
  body {
    background: #03a9f4;
  }

  div {
    text-align: center;
    font-size: 20vmin;
    line-height: 45vh;
    text-shadow: 0 0 #992400, 1px 1px rgba(152, 36, 1, 0.98), 2px 2px rgba(151, 37, 2, 0.96), 3px 3px rgba(151, 37, 2, 0.94), 4px 4px rgba(150, 37, 3, 0.92), 5px 5px rgba(149, 38, 4, 0.9), 6px 6px rgba(148, 38, 5, 0.88), 7px 7px rgba(148, 39, 5, 0.86), 8px 8px rgba(147, 39, 6, 0.84), 9px 9px rgba(146, 39, 7, 0.82), 10px 10px rgba(145, 40, 8, 0.8), 11px 11px rgba(145, 40, 8, 0.78), 12px 12px rgba(144, 41, 9, 0.76), 13px 13px rgba(143, 41, 10, 0.74), 14px 14px rgba(142, 41, 11, 0.72), 15px 15px rgba(142, 42, 11, 0.7), 16px 16px rgba(141, 42, 12, 0.68), 17px 17px rgba(140, 43, 13, 0.66), 18px 18px rgba(139, 43, 14, 0.64), 19px 19px rgba(138, 43, 15, 0.62), 20px 20px rgba(138, 44, 15, 0.6), 21px 21px rgba(137, 44, 16, 0.58), 22px 22px rgba(136, 45, 17, 0.56), 23px 23px rgba(135, 45, 18, 0.54), 24px 24px rgba(135, 45, 18, 0.52), 25px 25px rgba(134, 46, 19, 0.5), 26px 26px rgba(133, 46, 20, 0.48), 27px 27px rgba(132, 47, 21, 0.46), 28px 28px rgba(132, 47, 21, 0.44), 29px 29px rgba(131, 48, 22, 0.42), 30px 30px rgba(130, 48, 23, 0.4), 31px 31px rgba(129, 48, 24, 0.38), 32px 32px rgba(129, 49, 24, 0.36), 33px 33px rgba(128, 49, 25, 0.34), 34px 34px rgba(127, 50, 26, 0.32), 35px 35px rgba(126, 50, 27, 0.3), 36px 36px rgba(125, 50, 28, 0.28), 37px 37px rgba(125, 51, 28, 0.26), 38px 38px rgba(124, 51, 29, 0.24), 39px 39px rgba(123, 52, 30, 0.22), 40px 40px rgba(122, 52, 31, 0.2), 41px 41px rgba(122, 52, 31, 0.18), 42px 42px rgba(121, 53, 32, 0.16), 43px 43px rgba(120, 53, 33, 0.14), 44px 44px rgba(119, 54, 34, 0.12), 45px 45px rgba(119, 54, 34, 0.1), 46px 46px rgba(118, 54, 35, 0.08), 47px 47px rgba(117, 55, 36, 0.06), 48px 48px rgba(116, 55, 37, 0.04), 49px 49px rgba(116, 56, 37, 0.02), 50px 50px rgba(115, 56, 38, 0);
    color: #ff6333;
  }

  .left {
    text-shadow: 0 0 #263273, -1px 1px rgba(39, 50, 114, 0.98), -2px 2px rgba(40, 51, 113, 0.96), -3px 3px rgba(41, 51, 112, 0.94), -4px 4px rgba(41, 52, 112, 0.92), -5px 5px rgba(42, 52, 111, 0.9), -6px 6px rgba(43, 53, 110, 0.88), -7px 7px rgba(44, 53, 109, 0.86), -8px 8px rgba(44, 54, 109, 0.84), -9px 9px rgba(45, 55, 108, 0.82), -10px 10px rgba(46, 55, 107, 0.8), -11px 11px rgba(47, 56, 106, 0.78), -12px 12px rgba(47, 56, 106, 0.76), -13px 13px rgba(48, 57, 105, 0.74), -14px 14px rgba(49, 57, 104, 0.72), -15px 15px rgba(50, 58, 103, 0.7), -16px 16px rgba(50, 58, 103, 0.68), -17px 17px rgba(51, 59, 102, 0.66), -18px 18px rgba(52, 59, 101, 0.64), -19px 19px rgba(53, 60, 100, 0.62), -20px 20px rgba(54, 60, 99, 0.6), -21px 21px rgba(54, 61, 99, 0.58), -22px 22px rgba(55, 62, 98, 0.56), -23px 23px rgba(56, 62, 97, 0.54), -24px 24px rgba(57, 63, 96, 0.52), -25px 25px rgba(57, 63, 96, 0.5), -26px 26px rgba(58, 64, 95, 0.48), -27px 27px rgba(59, 64, 94, 0.46), -28px 28px rgba(60, 65, 93, 0.44), -29px 29px rgba(60, 65, 93, 0.42), -30px 30px rgba(61, 66, 92, 0.4), -31px 31px rgba(62, 66, 91, 0.38), -32px 32px rgba(63, 67, 90, 0.36), -33px 33px rgba(63, 67, 90, 0.34), -34px 34px rgba(64, 68, 89, 0.32), -35px 35px rgba(65, 68, 88, 0.3), -36px 36px rgba(66, 69, 87, 0.28), -37px 37px rgba(67, 70, 86, 0.26), -38px 38px rgba(67, 70, 86, 0.24), -39px 39px rgba(68, 71, 85, 0.22), -40px 40px rgba(69, 71, 84, 0.2), -41px 41px rgba(70, 72, 83, 0.18), -42px 42px rgba(70, 72, 83, 0.16), -43px 43px rgba(71, 73, 82, 0.14), -44px 44px rgba(72, 73, 81, 0.12), -45px 45px rgba(73, 74, 80, 0.1), -46px 46px rgba(73, 74, 80, 0.08), -47px 47px rgba(74, 75, 79, 0.06), -48px 48px rgba(75, 75, 78, 0.04), -49px 49px rgba(76, 76, 77, 0.02), -50px 50px rgba(77, 77, 77, 0);
    color: #6675cc;
  }

</style>
<body>
<ul>
  <li>立体文字阴影的关键点在于多层 text-shadow 的叠加</li>
  <li>这里合理运用了 SASS 函数来自动计算多层 text-shadow 的 CSS 代码</li>
  <li>
    运用了 Sass 的颜色函数，渐进实现层级阴影颜色
    &nbsp;&nbsp;fade-out: 改变颜色的透明度，让颜色更加透明
    &nbsp;&nbsp;desaturate: 改变颜色的饱和度值，让颜色更少的饱和
  </li>
</ul>
<div>Txt Shadow</div>
<div class="left"> TxT Long Shadow</div>
</body>
</html>